Hi Guys, |
Re: Excel - Name the workbook as well as name the sheet
Hi Jerry,
void setSheetNameOLE(OleAutoObj objSheet, string sheetName) {
checkRes(olePut(objSheet, cPropertyName, sheetName))
}
void saveFileAs(OleAutoObj objWorkbook, string filename) {
clear(objArgBlock)
put(objArgBlock, "FileName", filename)
checkRes(oleMethod(objWorkbook, "SaveAs", objArgBlock))
}
|
Re: Excel - Name the workbook as well as name the sheet void setSheetNameOLE(OleAutoObj objSheet, string sheetName) { olePut(objSheet, "Name", sheetName) } void saveFileAs(OleAutoObj objWorkbook, string filename) { clear(objArgBlock) put(objArgBlock, "FileName", filename) oleMethod(objWorkbook, "SaveAs", objArgBlock) } Thanks for the help |
Re: Excel - Name the workbook as well as name the sheet PatrickGuay - Mon Sep 12 14:23:59 EDT 2011 I have not tried either suggestion as of yet. So, I am not sure how these operate or if they work yet. I just want something that names the sheet and filename automatically without any intervention. If these suggestions do that then great. If not then I will need to figure that out. Thanks. Jerry |